import Vue from 'vue'
import Router from 'vue-router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'
const index = () => import('@/pages/index');
const about = () => import('@/pages/about');
const tabTest = () => import('@/pages/tabTest');
const experience = () => import('@/pages/experience');
const product = () => import('@/pages/product');
const contact = () => import('@/pages/contact');

import YDUI from 'vue-ydui';
import {Slider, SliderItem} from 'vue-ydui/dist/lib.rem/slider';

Vue.use(YDUI);
Vue.use(Router);
Vue.use(ElementUI);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/about',
      name: 'about',
      component: about
    },
    {
      path: '/experience',
      name: 'experience',
      component: experience
    },
    {
      path: '/product',
      name: 'product',
      component: product
    },
    {
      path: '/contact',
      name: 'contact',
      component: contact
    }

  ]
})
